from django.conf.urls import url
from booktest import views

urlpatterns = [
    url(r'^index$', views.index),  # 首页
    url(r'^showarg(\d+)', views.showarg),
    url(r'^login$', views.login),  # 显示登录页面
    url(r'^login_check$', views.login_check),

    url(r'^test_ajax$', views.ajax_test),
    url(r'^ajax_handle$', views.ajax_handle),  # ajax处理

    url(r'^login_ajax$', views.login_ajax),  # ajax登录
    url(r'^login_ajax_check$', views.login_ajax_check),  # ajax登录验证

    url(r'^set_cookie$', views.set_cookie), # 设置cookie
    url(r'^get_cookie$', views.get_cookie),  # 设置cookie


    url(r'^set_session$', views.set_session), # 设置session
    url(r'^get_session$', views.get_session),  # 获取session
    url(r'^clear_session$', views.clear_session),  # 清除session

]
